package cn.com.twoke.easyproject.modules.auth.request;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema( description = "用户登录请求参数")
public class LoginRequest {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 6, max = 50)
    @Schema(description = "用户名")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Length(min = 6, max = 30)
    @Schema(description = "密码")
    private String password;

}
